package org.raymond.iworks.study.example;

import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.raymond.iworks.StudyApplication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.Map;

@SpringBootTest(classes= StudyApplication.class)
@Slf4j
public class DynamicSQLTest {
    @Autowired
    private DynamicRepository dynamicRepository;

    @Test
    public void test01(){
        Map<String, Object> map = dynamicRepository.queryFirstData("t_sys_user");
        log.info("result:{}", JSONUtil.toJsonStr(map));
    }
}
